package com.xudm.cdg.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * 文心一言返回结果
 *
 * @author xudm
 */
@Data
public class WxYiYanResult implements Serializable {
    private String id;
    private String object;
    private long created;
    private String result;
    private boolean isTruncated;
    private boolean needClearHistory;
    private String finishReason;
    private Usage usage;

    /**
     * 用于记录使用情况
     */
    @Data
    private static class Usage implements Serializable {
        private long promptTokens;
        private long completionTokens;
        private long totalTokens;
    }
}
